cmake_minimum_required(VERSION 3.0.2)
project(linear_angular)

## 找到catkin的模块
find_package(catkin REQUIRED COMPONENTS
  roscpp
  nav_msgs
  sensor_msgs  # 如果你使用了sensor_msgs，取消注释
)

## catkin包配置
catkin_package()

## 指定C++标准
set(CMAKE_CXX_STANDARD 11)

## 包含目录
include_directories(
  ${catkin_INCLUDE_DIRS}
)

## 添加可执行文件
add_executable(sub_pose src/la.cpp)  # 假设你的代码在src/sub_pose.cpp

## 链接库
target_link_libraries(sub_pose
  ${catkin_LIBRARIES}
)

